﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnoWeb.CEND.BL.Infrastructure
{
    public interface IService<T> where T : class
    {
        IQueryable<T> GetAllElements();

        T GetElementById(int id);

        void CreateElement(T entity);

        void UpdateElement(T entity);

        void DeleteElement(int id);

        void SaveChanges();
    }
}
